from django.db import models
class User(models.Model):
    GENDER_CHOICES = (
        ('male', "male"),
        ('female', "female"),
    )
    name = models.CharField(max_length=254, unique=True,verbose_name="名字")
    mobile = models.CharField(max_length=254, unique=True,verbose_name="手机号")
    password = models.CharField(max_length=254, default="",verbose_name="密码")
    age = models.CharField(max_length=254, null=True, blank=True,unique=True,verbose_name="年龄")
    gender = models.CharField(max_length=254, choices=GENDER_CHOICES, default='male',verbose_name="性别")
    isAdmin=models.BooleanField(default=False,verbose_name="是否是管理员")
class MobileAreaCode(models.Model):
    code = models.CharField(max_length=254, unique=True, verbose_name="区号")